package com.mall.DTO;

import com.mall.pojo.Category;
import com.mall.pojo.Wares;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serial;
import java.io.Serializable;
import java.util.List;

/**
 * @Description
 * @ClassName ClassDto
 * @Author cxx
 * @Date 2023/4/25 22:17
 * @Version 1.0
 */

@EqualsAndHashCode(callSuper = true)
@Data
public class CategoryDTO extends Category implements Serializable {
    @Serial
    private static final long serialVersionUID = 1L;
    /**
     * 类下商品集合
     */
    private List<Wares> wares;
    /**
     * 该级别的下属级别
     */
    private List<CategoryDTO> children;

}
